import request from "@/utils/request.ts";
// 创建订单,获取支付二维码
export const getPayCode = async (subject: string, totalAmount: number) => {
    let response = await request({
        url: "/api/pay",
        method: "get",
        params: {
            subject, totalAmount
        },
    })
    return response.data
}
export const getPayStatus = async (outTrade: string) => {

    let response = await request({
        url: "/api/pay/status",
        method: "get",
        params: {
            outTrade,
        }
    })
    return response.data
}